fix(output): llmstxt section header produces "Itemss" when entity_type unset#102
fix(output): llmstxt section header produces "Itemss" when entity_type unset#102greynewell merged 1 commit intomainfrom
Conversation
…e unset GenerateLlmsTxt built the section header as `entityLabel + "s"` where the fallback for an unconfigured entity_type was "Items". This produced the double-plural "## Itemss" as the default heading. Fix: change the default fallback from "Items" to "Item" so that the computed header reads "## Items". Adds llmstxt_test.go covering the default and configured entity-type cases plus entity URL formatting. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis change adjusts the default entity label in the llmstxt output generator from plural ("Items") to singular ("Item"), with corresponding test coverage added to validate pluralization behavior for default and custom entity types. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
GenerateLlmsTxtbuilds the entities section header asentityLabel + "s"cfg.Data.EntityTypeis empty was"Items"— already plural"## Itemss"as the default heading when no entity type is configured"Items"to"Item"so the computed header reads"## Items"Test plan
TestGenerateLlmsTxt_DefaultEntityType: fails with old"Items"default, passes with"Item"TestGenerateLlmsTxt_ConfiguredEntityType:entity_type: recipe→## RecipesTestGenerateLlmsTxt_EntityLinks: entity URLs use correct formatgo test ./internal/archdocs/pssg/output/...passesgo build ./...passes🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests